#ifndef _I2C_H_
#define _I2C_H_

#include "driver/gpio.h"
#include "driver/i2c.h"
#include "esp_log.h"

#define MAX30102_I2C_SCL                GPIO_NUM_33 // GPIO number used for I2C master clock
#define MAX30102_I2C_SDA                GPIO_NUM_32 // GPIO number used for I2C master data
#define MAX30102_I2C_NUM                0           // I2C master i2c port number, the number of i2c peripheral interfaces available will depend on the chip
#define MAX30102_I2C_FREQ_HZ            400000      // I2C master clock frequency
#define MAX30102_I2C_TX_BUF_DISABLE     0           // I2C master doesn't need buffer
#define MAX30102_I2C_RX_BUF_DISABLE     0
#define MAX30102_I2C_TIMEOUT_MS         1000
#define MAX30102_GPIO_INT               25

esp_err_t max30102_i2c_init(void);

#endif
